import request from '../request.js'

// 共创-评论列表
export function pinglun(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/weichuang/pinglun", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 共创-回复
export function huifu_weichuang(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/weichuang/huifu_weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}
// 共创-回复二级列表 http://192.168.0.139:263/api/weichuang/pinglun_children
export function pinglun_children(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/weichuang/pinglun_children", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 共创 - 点赞 
export function like_weichuang(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/weichuang/like_weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}